<?php
namespace H5\Controller;
use Think\controller;

class CommonController extends Controller{
    public function _initialize(){
       	if(!session('userid')){
            $host ='http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]; 
            $this->redirect('h5/login/login?back_url='.$host);
        }
            
        
        
    }
    
    
}